package com.bjfu.dto;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class TeamDTO {
    private Long team_id;
    private String name;
    private String research_field;
    private String description;
    private LocalDateTime created_time;
    private Long admin_id;

    // Getters and Setters


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


    public Long getTeam_id() {
        return team_id;
    }

    public void setTeam_id(Long team_id) {
        this.team_id = team_id;
    }

    public String getResearch_field() {
        return research_field;
    }

    public void setResearch_field(String research_field) {
        this.research_field = research_field;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public LocalDateTime getCreated_time() {
        return created_time;
    }

    public void setCreated_time(LocalDateTime created_time) {
        this.created_time = created_time;
    }

    public Long getAdmin_id() {
        return admin_id;
    }

    public void setAdmin_id(Long admin_id) {
        this.admin_id = admin_id;
    }

    @Override
    public String toString() {
        return "TeamDTO{" +
                "team_id=" + team_id +
                ", name='" + name + '\'' +
                ", research_field='" + research_field + '\'' +
                ", description='" + description + '\'' +
                ", created_time=" + created_time +
                ", adminId=" + admin_id +
                '}';
    }
}

